﻿@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model Affiliates.FindArtInfo.Models.LoginModel
<div class="container-fluid">
      <div class="row-fluid">
            <div class="span4">
                <div class="well">
                    <legend><img width="32" height="32" border="0" src="templates/themes/bootstrap_v2_fixed/images/login.gif"> Account Login</legend>                   
                    <p style="color:#000000;">Enter your username and password to gain access to your account statistics, banners, linking code, FAQ and more.<br><br>If you can't remember your password, enter your username and we'll send your login information to you via email.<br><br></p>
                </div>
            </div>
            <div class="span8">                 
                    @using (Html.BeginForm("Login", "Home", FormMethod.Post))
                    {
                        <fieldset>                        
                            <legend style="color: #000000;">Login To Your Account</legend>    
                            @{
                                if (Model.Message != null)
                                {
                                    <div class="alert alert-error">
                                        <button data-dismiss="alert" class="close" type="button">×</button>                               
                                        Model.Message
                                    </div>
                                }
                            }    
                                                 
                            <div class="control-group">
                                <label class="control-label">Username</label>
                                <div class="controls">                                                               
                                    @Html.TextBoxFor(m=>m.UserName, new{@class="input-xlarge", @placeholder="Username"})
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Password</label>
                                <div class="controls">                                                               
                                    @Html.PasswordFor(m=>m.PassWord, new{@class="input-xlarge", @placeholder="Password"})
                                </div>
                            </div>                              
                            <div class="control-group">
                                <label class="control-label"></label>
                                <div class="controls">                           
                                    <input type="submit" value="Login To My Account" class="btn btn-primary">
                                </div>                               
                            </div>					
                        </fieldset>
                    }
                  @using (Html.BeginForm("ForgotPassword", "Home", FormMethod.Post))
                  {
                      <fieldset>                        
                          <legend style="color: #000000;">Need Your Password?</legend> 
                          <div class="control-group">
                              <label class="control-label">Username</label>
                              <div class="controls">                                                             
                                  @Html.TextBoxFor(m=>m.UserSendPass, new{@class="input-xlarge", @placeholder="Username"})
                              </div>
                          </div>  
                             
                          <div class="control-group">
                              <label class="control-label"></label>
                              <div class="controls">                           
                                  <input type="submit" value="Send To Email" class="btn btn-primary"> 
                              </div>
                          </div>							
                      </fieldset>
                  }  
            </div>
      </div>
 </div>
